﻿using System.Collections.Generic;
using CardGameCore.Battle;
using Cysharp.Threading.Tasks;

namespace CardGame.InGame
{
    public interface ILevelPrepare
    {
        UniTask Prepare();
    }

    public class DataProvider : IDataProvider, ILevelPrepare
    {
        public BattleData BattleData => _battleData;
        public IReadOnlyDictionary<int, CardData> CardDataDictionary => _cards;

        private BattleData _battleData;
        private readonly Dictionary<int, CardData> _cards = new Dictionary<int, CardData>();
        public UniTask Prepare()
        {
            _battleData = new BattleData
            {
                EnemyCards = new List<int>(),
                PlayerCards = new List<int>()
            };
            
            return UniTask.CompletedTask;
        }
    }
}